package com.kun.process.servicetask;

import org.flowable.common.engine.api.delegate.Expression;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

/**
 * @author fangkun
 * @create 2023-05-23-11:39
 */
public class MyServiceTask01 implements JavaDelegate {

    Expression username;

    @Override
    public void execute(DelegateExecution delegateExecution) {
        //获取 username 的值
        System.out.println("username.getExpressionText() = " + username.getExpressionText());
        System.out.println("username.getValue(execution) = " + username.getValue(delegateExecution));
        System.out.println("=============MyServiceTask01=============");
    }
}
